Skip to content

chore: restore backward compatibility for Cloudinary.new() #1011

Merged
tsi merged 3 commits into
masterfrom
VIDEO-20765-old-sdk-backwrds-compatibility
Mar 25, 2026
Merged

chore: restore backward compatibility for Cloudinary.new() #1011
tsi merged 3 commits into
masterfrom
VIDEO-20765-old-sdk-backwrds-compatibility

Conversation

@tsi
Copy link
Copy Markdown
Collaborator

@tsi tsi commented Mar 25, 2026

Summary

Restores legacy UMD behavior for Cloudinary.new(instanceConfig) so cloud_name and other instance-level options are merged into each videoPlayer / videoPlayers call, matching expectations for older SDK usage. Adds unit coverage for merge and override order.

Changes

  • src/index.umd.js - cloudinaryVideoPlayerLegacyConfig accepts optional instanceConfig and wraps videoPlayer / videoPlayers so per-call options are merged with Object.assign({}, instanceConfig, callOpts) (call wins on conflicts).
  • test/unit/legacy-cloudinary-new.test.js - Tests that instance cloud_name flows into the player config and that per-call cloud_name overrides the instance value.

Notes

  • Deprecation warning for Cloudinary.new() is unchanged; this only fixes option merging for apps still on the old pattern.

@tsi tsi requested a review from a team as a code owner March 25, 2026 11:05
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 25, 2026

Deploy Preview for cld-video-player ready!

Name Link
🔨 Latest commit 9198613
🔍 Latest deploy log https://app.netlify.com/projects/cld-video-player/deploys/69c3fecd423db0000854edad
😎 Deploy Preview https://deploy-preview-1011--cld-video-player.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 25, 2026

Deploy Preview for cld-vp-esm-pages ready!

Name Link
🔨 Latest commit 9198613
🔍 Latest deploy log https://app.netlify.com/projects/cld-vp-esm-pages/deploys/69c3fecd42e04b000772e042
😎 Deploy Preview https://deploy-preview-1011--cld-vp-esm-pages.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@tsi tsi changed the title chore: restore backward compatibility for Cloudinary.new() UMD [VIDEO-20765] chore: restore backward compatibility for Cloudinary.new() Mar 25, 2026
@tsi tsi self-assigned this Mar 25, 2026
@tsi tsi merged commit 286aa65 into master Mar 25, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants